package erfgame.core.world.terrain.async;

import java.util.concurrent.ThreadFactory;

public class PrioritisedThreadFactory implements ThreadFactory {
	
	private int priority;
	
	public PrioritisedThreadFactory( int priority ) {
		this.priority = priority;
	}

	public Thread newThread(Runnable r) {
		Thread thread = new Thread( r );
		thread.setPriority( priority );
		return thread;
	}

}
